import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';

@Plugin({
  pluginName: 'StartApp',
  plugin: 'cordova-plugin-startapp', // npm App name, example: cordova-plugin-camera
  pluginRef: 'plugins.startApp',  //必须跟 platforms/android/assets/cordova_plugins.js中的clobbers的变量名称一致，区分大小写
  platforms: ['Android','iOS'], // Array of platforms supported, example: ['Android', 'iOS']
})
@Injectable()
export class StartApp extends IonicNativePlugin {

  @Cordova({
    callbackOrder: 'reverse',
  })
  start(params:any,extra?:any):Promise<any>{return;}

  @Cordova({
    callbackOrder: 'reverse',
  })
  check(params:any,extra?:any):Promise<any>{return;}
  
  @Cordova({
    callbackOrder: 'reverse',
  })
  go(params:any,extra?:any):Promise<any>{return;}

  @Cordova()
  getExtras():Promise<any>{return;}
  
  @Cordova()
  getExtra(value:any):Promise<any>{return;}

  @Cordova()
  hasExtra(value:any):Promise<any>{return;}

}